<?php

$objectfunction = Request::get('FUNC');
$val_num = Request::getIntNumber('VAL_NUM');

$agrs = array();
for($i=0; $i<$val_num; $i++){
	switch(Request::get('VAL'.$i)){
		case 'null':
			$agrs[] = NULL;
			break;
		case 'true':
			$agrs[] = TRUE;
			break;
		case 'false':
			$agrs[] = FALSE;
			break;
		default:
			$agrs[] = Request::get('VAL'.$i);
	}
}

$val = new Jquery_Validator();
echo $val->callFunction($objectfunction, $agrs);
die();
